package org.hxyjs.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class Cheforder implements Serializable {
    private String cuno;

    private String uno;

    private String cno;

    private Date cubegintime;

    private String cuprice;

    private Date cuendtime;

    private Date cubegindate;

    private Date cuenddate;

    private String custate;

    private  Chef chef;

    private  User user;

    public Chef getChef() { return chef; }

    public void setChef(Chef chef) { this.chef = chef; }

    public User getUser() { return user; }

    public void setUser(User user) { this.user = user; }

    private static final long serialVersionUID = 1L;

    public String getCuno() {
        return cuno;
    }

    public void setCuno(String cuno) {
        this.cuno = cuno;
    }

    public String getUno() {
        return uno;
    }

    public void setUno(String uno) {
        this.uno = uno;
    }

    public String getCno() {
        return cno;
    }

    public void setCno(String cno) {
        this.cno = cno;
    }

    public Date getCubegintime() {
        return cubegintime;
    }

    public void setCubegintime(Date cubegintime) {
        this.cubegintime = cubegintime;
    }

    public String getCuprice() {
        return cuprice;
    }

    public void setCuprice(String cuprice) {
        this.cuprice = cuprice;
    }

    public Date getCuendtime() {
        return cuendtime;
    }

    public void setCuendtime(Date cuendtime) {
        this.cuendtime = cuendtime;
    }

    public Date getCubegindate() {
        return cubegindate;
    }

    public void setCubegindate(Date cubegindate) {
        this.cubegindate = cubegindate;
    }

    public Date getCuenddate() {
        return cuenddate;
    }

    public void setCuenddate(Date cuenddate) {
        this.cuenddate = cuenddate;
    }

    public String getCustate() {
        return custate;
    }

    public void setCustate(String custate) {
        this.custate = custate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Cheforder other = (Cheforder) that;
        return (this.getCuno() == null ? other.getCuno() == null : this.getCuno().equals(other.getCuno()))
            && (this.getUno() == null ? other.getUno() == null : this.getUno().equals(other.getUno()))
            && (this.getCno() == null ? other.getCno() == null : this.getCno().equals(other.getCno()))
            && (this.getCubegintime() == null ? other.getCubegintime() == null : this.getCubegintime().equals(other.getCubegintime()))
            && (this.getCuprice() == null ? other.getCuprice() == null : this.getCuprice().equals(other.getCuprice()))
            && (this.getCuendtime() == null ? other.getCuendtime() == null : this.getCuendtime().equals(other.getCuendtime()))
            && (this.getCubegindate() == null ? other.getCubegindate() == null : this.getCubegindate().equals(other.getCubegindate()))
            && (this.getCuenddate() == null ? other.getCuenddate() == null : this.getCuenddate().equals(other.getCuenddate()))
            && (this.getCustate() == null ? other.getCustate() == null : this.getCustate().equals(other.getCustate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCuno() == null) ? 0 : getCuno().hashCode());
        result = prime * result + ((getUno() == null) ? 0 : getUno().hashCode());
        result = prime * result + ((getCno() == null) ? 0 : getCno().hashCode());
        result = prime * result + ((getCubegintime() == null) ? 0 : getCubegintime().hashCode());
        result = prime * result + ((getCuprice() == null) ? 0 : getCuprice().hashCode());
        result = prime * result + ((getCuendtime() == null) ? 0 : getCuendtime().hashCode());
        result = prime * result + ((getCubegindate() == null) ? 0 : getCubegindate().hashCode());
        result = prime * result + ((getCuenddate() == null) ? 0 : getCuenddate().hashCode());
        result = prime * result + ((getCustate() == null) ? 0 : getCustate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", cuno=").append(cuno);
        sb.append(", uno=").append(uno);
        sb.append(", cno=").append(cno);
        sb.append(", cubegintime=").append(cubegintime);
        sb.append(", cuprice=").append(cuprice);
        sb.append(", cuendtime=").append(cuendtime);
        sb.append(", cubegindate=").append(cubegindate);
        sb.append(", cuenddate=").append(cuenddate);
        sb.append(", custate=").append(custate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}